﻿using UnityEngine;

namespace Gp.Scripts.Core {
    public class UnitSubObjectParent : UnitSubObject{
        protected override void OnInit() {
            foreach (var child in this.GetComponentsInChildren<UnitSubObject>()) {
                if (child == this) continue;
                child.Init(UnitReference);
            }
        }
        
    }
}